Skip to content

[Components][OptionsResolver] Fix&improve replaceDefaults() description #3264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 18, 2013
Merged

[Components][OptionsResolver] Fix&improve replaceDefaults() description #3264

merged 2 commits into from
Dec 18, 2013

Conversation

bicpi
Copy link
Contributor

@bicpi bicpi commented Dec 3, 2013

Q A
Doc fix? yes
New docs? yes
Applies to 2.2+
Fixed tickets -

The description of the replaceDefaults() method was not correct. This PR replaces it with a new section about how to overwrite or replace default values correctly. See also:

Also changed Closure to closure to be consistent (mixed usage before, closure follows Wikipedia)


* ``$options``: an :class:`Symfony\\Component\\OptionsResolver\\Options`
instance with all the other default options
* ``$previousValue``: the previous set default value
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not indent a list

weaverryan added a commit that referenced this pull request Dec 18, 2013
[Components][OptionsResolver] Fix&improve replaceDefaults() description
@weaverryan weaverryan merged commit 650dd51 into symfony:2.2 Dec 18, 2013
@weaverryan
Copy link
Member

Wow, really great explanation. Nice work Philipp!

@bicpi bicpi deleted the improve_method_description branch January 5, 2014 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants